package com.ssdp.constant;

/**
 * @author syo 2319615164@qq.com
 * @description Redis键值常量
 * @date 2024/3/14
 * @Copyright syo
 */
@SuppressWarnings("all")
public interface RedisConstant {
    /* 登录模块 */
    String LOGIN_CODE_KEY = "login:code:";
    Long LOGIN_CODE_TTL = 2L;
    String LOGIN_USER_KEY = "login:token:";
    Long LOGIN_USER_TTL = 30L;

    /* 缓存模块 */
    Long CACHE_NULL_TTL = 2L;
    Long CACHE_SHOP_TTL = 30L;
    String CACHE_SHOP_KEY = "cache:shop:";
    String CACHE_SHOP_TYPE = "cache:shoptype";
    Long CACHE_SHOP_TYPE_TTL = 30L;

    /* 分布式锁模块 */
    String LOCK_SHOP_KEY = "lock:shop:";
    Long LOCK_SHOP_TTL = 10L;

    String SECKILL_STOCK_KEY = "seckill:stock:";
    String BLOG_LIKED_KEY = "blog:liked:";
    String FEED_KEY = "feed:";
    String SHOP_GEO_KEY = "shop:geo:";
    String USER_SIGN_KEY = "sign:";
    String FOLLOW_USER_KEY = "follows:";
}
